package com.acs.code7.ds.dao;
import com.acs.code7.common.dto.PermissionDTO;
import com.acs.code7.common.dto.RoleDTO;
import com.acs.code7.ds.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysRoleDao extends BaseDao<SysRole> {
    List<RoleDTO> findAll();

    List<PermissionDTO> findRolePermissions(Integer roleId);

    int countByIds(@Param("roleIdList") List<Integer> roleIdList);
}
